﻿namespace Vdc.Grid.Design
{
    using Vdc.Grid;
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.Windows.Forms;
    using System.Windows.Forms.Design;

    public class GridTemplateSettingsSetupControl : Form
    {
        private GridTemplateSettings _templateSettings;
        private Button BtnCancel;
        private Button BtnOk;
        private Button button3;
        private IContainer components;
        private IWindowsFormsEditorService editorService;
        private GroupBox groupBox1;
        private GroupBox groupBox2;
        private GroupBox groupBox3;
        private GroupBox groupBox4;
        private GroupBox groupBox5;
        private GroupBox groupBox6;
        private Label label1;
        private Label label10;
        private Label label11;
        private Label label2;
        private Label label3;
        private Label label4;
        private Label label5;
        private Label label6;
        private Label label7;
        private Label label8;
        private Label label9;
        private ComboBox Selector_FilterApplyButton_TemplateId;
        private ComboBox Selector_FilterHideButton_TemplateId;
        private ComboBox Selector_FilterRemoveButton_TemplateId;
        private ComboBox Selector_FilterShowButton_TemplateId;
        private ComboBox Selector_GroupHeaderTemplateId;
        private ComboBox Selector_HeadingTemplateId;
        private ComboBox Selector_ManualPagingTemplateId;
        private ComboBox Selector_MultiRecordSaveCancel_TemplateId;
        private ComboBox Selector_NewRecord_EditTemplateId;
        private ComboBox Selector_NewRecord_TemplateId;
        private ComboBox Selector_RowEditTemplateId;

        public GridTemplateSettingsSetupControl(GridTemplateSettings templateSettings, IWindowsFormsEditorService editorService, string[] templatesIds)
        {
            this.InitializeComponent();
            this._templateSettings = templateSettings;
            this.editorService = editorService;
            this.Selector_FilterApplyButton_TemplateId.Items.Add("");
            this.Selector_FilterHideButton_TemplateId.Items.Add("");
            this.Selector_FilterRemoveButton_TemplateId.Items.Add("");
            this.Selector_FilterShowButton_TemplateId.Items.Add("");
            this.Selector_GroupHeaderTemplateId.Items.Add("");
            this.Selector_HeadingTemplateId.Items.Add("");
            this.Selector_ManualPagingTemplateId.Items.Add("");
            this.Selector_MultiRecordSaveCancel_TemplateId.Items.Add("");
            this.Selector_NewRecord_EditTemplateId.Items.Add("");
            this.Selector_NewRecord_TemplateId.Items.Add("");
            this.Selector_RowEditTemplateId.Items.Add("");
            if ((templatesIds != null) && (templatesIds.Length > 0))
            {
                int num = 0;
                foreach (string str in templatesIds)
                {
                    this.Selector_FilterApplyButton_TemplateId.Items.Add(str);
                    if (this._templateSettings.FilterApplyButton_TemplateId == str)
                    {
                        this.Selector_FilterApplyButton_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.FilterApplyButton_TemplateId))
                    {
                        this.Selector_FilterApplyButton_TemplateId.Text = this._templateSettings.FilterApplyButton_TemplateId;
                    }
                    this.Selector_FilterHideButton_TemplateId.Items.Add(str);
                    if (this._templateSettings.FilterHideButton_TemplateId == str)
                    {
                        this.Selector_FilterHideButton_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.FilterHideButton_TemplateId))
                    {
                        this.Selector_FilterHideButton_TemplateId.Text = this._templateSettings.FilterHideButton_TemplateId;
                    }
                    this.Selector_FilterRemoveButton_TemplateId.Items.Add(str);
                    if (this._templateSettings.FilterRemoveButton_TemplateId == str)
                    {
                        this.Selector_FilterRemoveButton_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.FilterRemoveButton_TemplateId))
                    {
                        this.Selector_FilterRemoveButton_TemplateId.Text = this._templateSettings.FilterRemoveButton_TemplateId;
                    }
                    this.Selector_FilterShowButton_TemplateId.Items.Add(str);
                    if (this._templateSettings.FilterShowButton_TemplateId == str)
                    {
                        this.Selector_FilterShowButton_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.FilterShowButton_TemplateId))
                    {
                        this.Selector_FilterShowButton_TemplateId.Text = this._templateSettings.FilterShowButton_TemplateId;
                    }
                    this.Selector_GroupHeaderTemplateId.Items.Add(str);
                    if (this._templateSettings.GroupHeaderTemplateId == str)
                    {
                        this.Selector_GroupHeaderTemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.GroupHeaderTemplateId))
                    {
                        this.Selector_GroupHeaderTemplateId.Text = this._templateSettings.GroupHeaderTemplateId;
                    }
                    this.Selector_HeadingTemplateId.Items.Add(str);
                    if (this._templateSettings.HeadingTemplateId == str)
                    {
                        this.Selector_HeadingTemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.HeadingTemplateId))
                    {
                        this.Selector_HeadingTemplateId.Text = this._templateSettings.HeadingTemplateId;
                    }
                    this.Selector_ManualPagingTemplateId.Items.Add(str);
                    if (this._templateSettings.ManualPagingTemplateId == str)
                    {
                        this.Selector_ManualPagingTemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.ManualPagingTemplateId))
                    {
                        this.Selector_ManualPagingTemplateId.Text = this._templateSettings.ManualPagingTemplateId;
                    }
                    this.Selector_MultiRecordSaveCancel_TemplateId.Items.Add(str);
                    if (this._templateSettings.MultiRecordSaveCancel_TemplateId == str)
                    {
                        this.Selector_MultiRecordSaveCancel_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.MultiRecordSaveCancel_TemplateId))
                    {
                        this.Selector_MultiRecordSaveCancel_TemplateId.Text = this._templateSettings.MultiRecordSaveCancel_TemplateId;
                    }
                    this.Selector_NewRecord_EditTemplateId.Items.Add(str);
                    if (this._templateSettings.NewRecord_EditTemplateId == str)
                    {
                        this.Selector_NewRecord_EditTemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.NewRecord_EditTemplateId))
                    {
                        this.Selector_NewRecord_EditTemplateId.Text = this._templateSettings.NewRecord_EditTemplateId;
                    }
                    this.Selector_NewRecord_TemplateId.Items.Add(str);
                    if (this._templateSettings.NewRecord_TemplateId == str)
                    {
                        this.Selector_NewRecord_TemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.NewRecord_TemplateId))
                    {
                        this.Selector_NewRecord_TemplateId.Text = this._templateSettings.NewRecord_TemplateId;
                    }
                    this.Selector_RowEditTemplateId.Items.Add(str);
                    if (this._templateSettings.RowEditTemplateId == str)
                    {
                        this.Selector_RowEditTemplateId.SelectedIndex = num;
                    }
                    else if ((num == (templatesIds.Length - 1)) && !string.IsNullOrEmpty(this._templateSettings.RowEditTemplateId))
                    {
                        this.Selector_RowEditTemplateId.Text = this._templateSettings.RowEditTemplateId;
                    }
                    num++;
                }
            }
            else
            {
                this.Selector_FilterApplyButton_TemplateId.Text = this._templateSettings.FilterApplyButton_TemplateId;
                this.Selector_FilterHideButton_TemplateId.Text = this._templateSettings.FilterHideButton_TemplateId;
                this.Selector_FilterRemoveButton_TemplateId.Text = this._templateSettings.FilterRemoveButton_TemplateId;
                this.Selector_FilterShowButton_TemplateId.Text = this._templateSettings.FilterShowButton_TemplateId;
                this.Selector_ManualPagingTemplateId.Text = this._templateSettings.ManualPagingTemplateId;
                this.Selector_MultiRecordSaveCancel_TemplateId.Text = this._templateSettings.MultiRecordSaveCancel_TemplateId;
                this.Selector_NewRecord_EditTemplateId.Text = this._templateSettings.NewRecord_EditTemplateId;
                this.Selector_NewRecord_TemplateId.Text = this._templateSettings.NewRecord_TemplateId;
                this.Selector_RowEditTemplateId.Text = this._templateSettings.RowEditTemplateId;
            }
        }

        private void BtnCancel_Click(object sender, EventArgs e)
        {
            this._templateSettings = null;
            base.Invalidate(false);
            base.Close();
        }

        private void BtnOk_Click(object sender, EventArgs e)
        {
            this._templateSettings.FilterApplyButton_TemplateId = this.Selector_FilterApplyButton_TemplateId.Text;
            this._templateSettings.FilterHideButton_TemplateId = this.Selector_FilterHideButton_TemplateId.Text;
            this._templateSettings.FilterRemoveButton_TemplateId = this.Selector_FilterRemoveButton_TemplateId.Text;
            this._templateSettings.FilterShowButton_TemplateId = this.Selector_FilterShowButton_TemplateId.Text;
            this._templateSettings.GroupHeaderTemplateId = this.Selector_GroupHeaderTemplateId.Text;
            this._templateSettings.HeadingTemplateId = this.Selector_HeadingTemplateId.Text;
            this._templateSettings.ManualPagingTemplateId = this.Selector_ManualPagingTemplateId.Text;
            this._templateSettings.MultiRecordSaveCancel_TemplateId = this.Selector_MultiRecordSaveCancel_TemplateId.Text;
            this._templateSettings.NewRecord_EditTemplateId = this.Selector_NewRecord_EditTemplateId.Text;
            this._templateSettings.NewRecord_TemplateId = this.Selector_NewRecord_TemplateId.Text;
            this._templateSettings.RowEditTemplateId = this.Selector_RowEditTemplateId.Text;
            base.Invalidate(false);
            base.Close();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Process.Start("http://www.vdc.com.vn/");
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.groupBox1 = new GroupBox();
            this.Selector_MultiRecordSaveCancel_TemplateId = new ComboBox();
            this.label3 = new Label();
            this.Selector_NewRecord_EditTemplateId = new ComboBox();
            this.label2 = new Label();
            this.Selector_NewRecord_TemplateId = new ComboBox();
            this.label1 = new Label();
            this.groupBox2 = new GroupBox();
            this.Selector_FilterRemoveButton_TemplateId = new ComboBox();
            this.label7 = new Label();
            this.Selector_FilterHideButton_TemplateId = new ComboBox();
            this.label4 = new Label();
            this.Selector_FilterApplyButton_TemplateId = new ComboBox();
            this.label5 = new Label();
            this.Selector_FilterShowButton_TemplateId = new ComboBox();
            this.label6 = new Label();
            this.groupBox3 = new GroupBox();
            this.Selector_RowEditTemplateId = new ComboBox();
            this.label11 = new Label();
            this.groupBox4 = new GroupBox();
            this.Selector_ManualPagingTemplateId = new ComboBox();
            this.label8 = new Label();
            this.button3 = new Button();
            this.BtnCancel = new Button();
            this.BtnOk = new Button();
            this.groupBox5 = new GroupBox();
            this.Selector_GroupHeaderTemplateId = new ComboBox();
            this.label9 = new Label();
            this.groupBox6 = new GroupBox();
            this.Selector_HeadingTemplateId = new ComboBox();
            this.label10 = new Label();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox5.SuspendLayout();
            this.groupBox6.SuspendLayout();
            base.SuspendLayout();
            this.groupBox1.Controls.Add(this.Selector_MultiRecordSaveCancel_TemplateId);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.Selector_NewRecord_EditTemplateId);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.Selector_NewRecord_TemplateId);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Location = new Point(0x13, 14);
            this.groupBox1.Margin = new Padding(2, 2, 2, 2);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Padding = new Padding(2, 2, 2, 2);
            this.groupBox1.Size = new Size(0x133, 0x80);
            this.groupBox1.TabIndex = 0;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Templates for Command Buttons";
            this.Selector_MultiRecordSaveCancel_TemplateId.FormattingEnabled = true;
            this.Selector_MultiRecordSaveCancel_TemplateId.Location = new Point(0x9c, 0x63);
            this.Selector_MultiRecordSaveCancel_TemplateId.Margin = new Padding(2, 2, 2, 2);
            this.Selector_MultiRecordSaveCancel_TemplateId.Name = "Selector_MultiRecordSaveCancel_TemplateId";
            this.Selector_MultiRecordSaveCancel_TemplateId.Size = new Size(140, 0x15);
            this.Selector_MultiRecordSaveCancel_TemplateId.TabIndex = 5;
            this.label3.AutoSize = true;
            this.label3.Location = new Point(6, 0x66);
            this.label3.Margin = new Padding(2, 0, 2, 0);
            this.label3.Name = "label3";
            this.label3.Size = new Size(150, 13);
            this.label3.TabIndex = 4;
            this.label3.Text = "\"Save All | Cancel All\" Buttons";
            this.Selector_NewRecord_EditTemplateId.FormattingEnabled = true;
            this.Selector_NewRecord_EditTemplateId.Location = new Point(0x9c, 0x3f);
            this.Selector_NewRecord_EditTemplateId.Margin = new Padding(2, 2, 2, 2);
            this.Selector_NewRecord_EditTemplateId.Name = "Selector_NewRecord_EditTemplateId";
            this.Selector_NewRecord_EditTemplateId.Size = new Size(140, 0x15);
            this.Selector_NewRecord_EditTemplateId.TabIndex = 3;
            this.label2.AutoSize = true;
            this.label2.Location = new Point(6, 0x42);
            this.label2.Margin = new Padding(2, 0, 2, 0);
            this.label2.Name = "label2";
            this.label2.Size = new Size(0x7a, 13);
            this.label2.TabIndex = 2;
            this.label2.Text = "\"Save | Cancel\" Buttons";
            this.Selector_NewRecord_TemplateId.FormattingEnabled = true;
            this.Selector_NewRecord_TemplateId.Location = new Point(0x9c, 0x1c);
            this.Selector_NewRecord_TemplateId.Margin = new Padding(2, 2, 2, 2);
            this.Selector_NewRecord_TemplateId.Name = "Selector_NewRecord_TemplateId";
            this.Selector_NewRecord_TemplateId.Size = new Size(140, 0x15);
            this.Selector_NewRecord_TemplateId.TabIndex = 1;
            this.label1.AutoSize = true;
            this.label1.Location = new Point(6, 30);
            this.label1.Margin = new Padding(2, 0, 2, 0);
            this.label1.Name = "label1";
            this.label1.Size = new Size(0x5f, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "\"Add New\" Button";
            this.groupBox2.Controls.Add(this.Selector_FilterRemoveButton_TemplateId);
            this.groupBox2.Controls.Add(this.label7);
            this.groupBox2.Controls.Add(this.Selector_FilterHideButton_TemplateId);
            this.groupBox2.Controls.Add(this.label4);
            this.groupBox2.Controls.Add(this.Selector_FilterApplyButton_TemplateId);
            this.groupBox2.Controls.Add(this.label5);
            this.groupBox2.Controls.Add(this.Selector_FilterShowButton_TemplateId);
            this.groupBox2.Controls.Add(this.label6);
            this.groupBox2.Location = new Point(0x13, 0xbc);
            this.groupBox2.Margin = new Padding(2, 2, 2, 2);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Padding = new Padding(2, 2, 2, 2);
            this.groupBox2.Size = new Size(0x133, 0x9a);
            this.groupBox2.TabIndex = 1;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Templates for Filter Buttons";
            this.Selector_FilterRemoveButton_TemplateId.FormattingEnabled = true;
            this.Selector_FilterRemoveButton_TemplateId.Location = new Point(0x9c, 0x80);
            this.Selector_FilterRemoveButton_TemplateId.Margin = new Padding(2, 2, 2, 2);
            this.Selector_FilterRemoveButton_TemplateId.Name = "Selector_FilterRemoveButton_TemplateId";
            this.Selector_FilterRemoveButton_TemplateId.Size = new Size(140, 0x15);
            this.Selector_FilterRemoveButton_TemplateId.TabIndex = 7;
            this.label7.AutoSize = true;
            this.label7.Location = new Point(6, 130);
            this.label7.Margin = new Padding(2, 0, 2, 0);
            this.label7.Name = "label7";
            this.label7.Size = new Size(0x74, 13);
            this.label7.TabIndex = 6;
            this.label7.Text = "\"Remove Filter\" Button";
            this.Selector_FilterHideButton_TemplateId.FormattingEnabled = true;
            this.Selector_FilterHideButton_TemplateId.Location = new Point(0x9c, 0x5e);
            this.Selector_FilterHideButton_TemplateId.Margin = new Padding(2, 2, 2, 2);
            this.Selector_FilterHideButton_TemplateId.Name = "Selector_FilterHideButton_TemplateId";
            this.Selector_FilterHideButton_TemplateId.Size = new Size(140, 0x15);
            this.Selector_FilterHideButton_TemplateId.TabIndex = 5;
            this.label4.AutoSize = true;
            this.label4.Location = new Point(6, 0x61);
            this.label4.Margin = new Padding(2, 0, 2, 0);
            this.label4.Name = "label4";
            this.label4.Size = new Size(0x62, 13);
            this.label4.TabIndex = 4;
            this.label4.Text = "\"Hide Filter\" Button";
            this.Selector_FilterApplyButton_TemplateId.FormattingEnabled = true;
            this.Selector_FilterApplyButton_TemplateId.Location = new Point(0x9c, 0x3d);
            this.Selector_FilterApplyButton_TemplateId.Margin = new Padding(2, 2, 2, 2);
            this.Selector_FilterApplyButton_TemplateId.Name = "Selector_FilterApplyButton_TemplateId";
            this.Selector_FilterApplyButton_TemplateId.Size = new Size(140, 0x15);
            this.Selector_FilterApplyButton_TemplateId.TabIndex = 3;
            this.label5.AutoSize = true;
            this.label5.Location = new Point(6, 0x3f);
            this.label5.Margin = new Padding(2, 0, 2, 0);
            this.label5.Name = "label5";
            this.label5.Size = new Size(0x66, 13);
            this.label5.TabIndex = 2;
            this.label5.Text = "\"Apply Filter\" Button";
            this.Selector_FilterShowButton_TemplateId.FormattingEnabled = true;
            this.Selector_FilterShowButton_TemplateId.Location = new Point(0x9c, 0x1c);
            this.Selector_FilterShowButton_TemplateId.Margin = new Padding(2, 2, 2, 2);
            this.Selector_FilterShowButton_TemplateId.Name = "Selector_FilterShowButton_TemplateId";
            this.Selector_FilterShowButton_TemplateId.Size = new Size(140, 0x15);
            this.Selector_FilterShowButton_TemplateId.TabIndex = 1;
            this.label6.AutoSize = true;
            this.label6.Location = new Point(6, 30);
            this.label6.Margin = new Padding(2, 0, 2, 0);
            this.label6.Name = "label6";
            this.label6.Size = new Size(0x67, 13);
            this.label6.TabIndex = 0;
            this.label6.Text = "\"Show Filter\" Button";
            this.groupBox3.Controls.Add(this.Selector_RowEditTemplateId);
            this.groupBox3.Controls.Add(this.label11);
            this.groupBox3.Location = new Point(0x17b, 14);
            this.groupBox3.Margin = new Padding(2, 2, 2, 2);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Padding = new Padding(2, 2, 2, 2);
            this.groupBox3.Size = new Size(0x133, 0x44);
            this.groupBox3.TabIndex = 2;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Template for Editing the Row";
            this.Selector_RowEditTemplateId.FormattingEnabled = true;
            this.Selector_RowEditTemplateId.Location = new Point(0x9c, 0x1c);
            this.Selector_RowEditTemplateId.Margin = new Padding(2, 2, 2, 2);
            this.Selector_RowEditTemplateId.Name = "Selector_RowEditTemplateId";
            this.Selector_RowEditTemplateId.Size = new Size(140, 0x15);
            this.Selector_RowEditTemplateId.TabIndex = 1;
            this.label11.AutoSize = true;
            this.label11.Location = new Point(6, 30);
            this.label11.Margin = new Padding(2, 0, 2, 0);
            this.label11.Name = "label11";
            this.label11.Size = new Size(0x61, 13);
            this.label11.TabIndex = 0;
            this.label11.Text = "Row Edit Template";
            this.groupBox4.Controls.Add(this.Selector_ManualPagingTemplateId);
            this.groupBox4.Controls.Add(this.label8);
            this.groupBox4.Location = new Point(0x17b, 0x66);
            this.groupBox4.Margin = new Padding(2, 2, 2, 2);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Padding = new Padding(2, 2, 2, 2);
            this.groupBox4.Size = new Size(0x133, 0x44);
            this.groupBox4.TabIndex = 3;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Template for Manual Paging";
            this.Selector_ManualPagingTemplateId.FormattingEnabled = true;
            this.Selector_ManualPagingTemplateId.Location = new Point(0x9c, 0x1c);
            this.Selector_ManualPagingTemplateId.Margin = new Padding(2, 2, 2, 2);
            this.Selector_ManualPagingTemplateId.Name = "Selector_ManualPagingTemplateId";
            this.Selector_ManualPagingTemplateId.Size = new Size(140, 0x15);
            this.Selector_ManualPagingTemplateId.TabIndex = 1;
            this.label8.AutoSize = true;
            this.label8.Location = new Point(6, 30);
            this.label8.Margin = new Padding(2, 0, 2, 0);
            this.label8.Name = "label8";
            this.label8.Size = new Size(0x7d, 13);
            this.label8.TabIndex = 0;
            this.label8.Text = "Manual Paging Template";
            this.button3.Location = new Point(0x19f, 370);
            this.button3.Margin = new Padding(2, 2, 2, 2);
            this.button3.Name = "button3";
            this.button3.Size = new Size(0x53, 0x1c);
            this.button3.TabIndex = 0x12;
            this.button3.Text = "More Info ...";
            this.button3.UseVisualStyleBackColor = true;
            this.button3.Click += new System.EventHandler(this.button3_Click);
            this.BtnCancel.Location = new Point(0x149, 370);
            this.BtnCancel.Margin = new Padding(2, 2, 2, 2);
            this.BtnCancel.Name = "BtnCancel";
            this.BtnCancel.Size = new Size(70, 0x1c);
            this.BtnCancel.TabIndex = 0x11;
            this.BtnCancel.Text = "Cancel";
            this.BtnCancel.UseVisualStyleBackColor = true;
            this.BtnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
            this.BtnOk.Location = new Point(0xef, 370);
            this.BtnOk.Margin = new Padding(2, 2, 2, 2);
            this.BtnOk.Name = "BtnOk";
            this.BtnOk.Size = new Size(0x4c, 0x1c);
            this.BtnOk.TabIndex = 0x10;
            this.BtnOk.Text = "OK";
            this.BtnOk.UseVisualStyleBackColor = true;
            this.BtnOk.Click += new System.EventHandler(this.BtnOk_Click);
            this.groupBox5.Controls.Add(this.Selector_GroupHeaderTemplateId);
            this.groupBox5.Controls.Add(this.label9);
            this.groupBox5.Location = new Point(0x17b, 190);
            this.groupBox5.Margin = new Padding(2);
            this.groupBox5.Name = "groupBox5";
            this.groupBox5.Padding = new Padding(2);
            this.groupBox5.Size = new Size(0x133, 0x44);
            this.groupBox5.TabIndex = 0x13;
            this.groupBox5.TabStop = false;
            this.groupBox5.Text = "Template for Group Headers";
            this.Selector_GroupHeaderTemplateId.FormattingEnabled = true;
            this.Selector_GroupHeaderTemplateId.Location = new Point(0x9c, 0x1c);
            this.Selector_GroupHeaderTemplateId.Margin = new Padding(2);
            this.Selector_GroupHeaderTemplateId.Name = "Selector_GroupHeaderTemplateId";
            this.Selector_GroupHeaderTemplateId.Size = new Size(140, 0x15);
            this.Selector_GroupHeaderTemplateId.TabIndex = 1;
            this.label9.AutoSize = true;
            this.label9.Location = new Point(6, 30);
            this.label9.Margin = new Padding(2, 0, 2, 0);
            this.label9.Name = "label9";
            this.label9.Size = new Size(0x7e, 13);
            this.label9.TabIndex = 0;
            this.label9.Text = "Group Headers Template";
            this.groupBox6.Controls.Add(this.Selector_HeadingTemplateId);
            this.groupBox6.Controls.Add(this.label10);
            this.groupBox6.Location = new Point(0x17b, 0x112);
            this.groupBox6.Margin = new Padding(2);
            this.groupBox6.Name = "groupBox6";
            this.groupBox6.Padding = new Padding(2);
            this.groupBox6.Size = new Size(0x133, 0x44);
            this.groupBox6.TabIndex = 20;
            this.groupBox6.TabStop = false;
            this.groupBox6.Text = "Template for Grid Heading";
            this.Selector_HeadingTemplateId.FormattingEnabled = true;
            this.Selector_HeadingTemplateId.Location = new Point(0x9c, 0x1c);
            this.Selector_HeadingTemplateId.Margin = new Padding(2);
            this.Selector_HeadingTemplateId.Name = "Selector_HeadingTemplateId";
            this.Selector_HeadingTemplateId.Size = new Size(140, 0x15);
            this.Selector_HeadingTemplateId.TabIndex = 1;
            this.label10.AutoSize = true;
            this.label10.Location = new Point(6, 30);
            this.label10.Margin = new Padding(2, 0, 2, 0);
            this.label10.Name = "label10";
            this.label10.Size = new Size(0x74, 13);
            this.label10.TabIndex = 0;
            this.label10.Text = "Grid Heading Template";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x2c0, 0x1a8);
            base.Controls.Add(this.groupBox6);
            base.Controls.Add(this.groupBox5);
            base.Controls.Add(this.button3);
            base.Controls.Add(this.BtnCancel);
            base.Controls.Add(this.BtnOk);
            base.Controls.Add(this.groupBox4);
            base.Controls.Add(this.groupBox3);
            base.Controls.Add(this.groupBox2);
            base.Controls.Add(this.groupBox1);
            base.Margin = new Padding(2, 2, 2, 2);
            base.Name = "GridTemplateSettingsSetupControl";
            this.Text = "Grid Template Settings";
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox5.ResumeLayout(false);
            this.groupBox5.PerformLayout();
            this.groupBox6.ResumeLayout(false);
            this.groupBox6.PerformLayout();
            base.ResumeLayout(false);
        }

        public GridTemplateSettings TemplateSettings
        {
            get
            {
                return this._templateSettings;
            }
            set
            {
                if (this._templateSettings != value)
                {
                    this._templateSettings = value;
                }
            }
        }
    }
}

